<template>
    <div class="box404">
        <div class="head404"></div>
        <div class="txtbg404">
            <div class="txtbox">
                <p>对不起，您请求的页面不存在、或已被删除、或暂时不可用</p>
                <p class="paddingbox">请点击以下链接继续浏览网页</p>
                <p>
                    》
                    <a href="url" onclick="javascript:history.back(-1);return false;">返回上一个页面</a>
                    <br>
                </p>
                <p>
                    》
                    <a href="/">返回网站首页</a>
                </p>
            </div>
        </div>
    </div>
</template>
<script lang="ts">
  import { defineComponent, onMounted, ref } from 'vue';
  import { windowShow } from '@/renderer/utils/window';
  import { argsData } from '@/renderer/store';

    export default defineComponent({
        name: '404',
        setup() {
              onMounted(() => {
                windowShow(argsData.window.id);
              });
            return {};
        },
    });
</script>
<style scoped>
    .box404{
        width: 100vw;
        height: 100vh;
        background-color: #494949;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    body{
        background-color: #494949;
    }
    .head404 {
        width: 580px;
        height: 234px;
        margin: 50px auto 0 auto;
        background: url(../../assets/head404.png) no-repeat;
    }

    .txtbg404 {
        width: 499px;
        height: 169px;
        margin: 10px auto 0 auto;
        background: url(../../assets/txtbg404.png) no-repeat;
    }

    .txtbg404 .txtbox {
        width: 390px;
        position: relative;
        top: 30px;
        left: 60px;
        color: #eee;
        font-size: 14px;
    }

    .txtbg404 .txtbox p {
        margin: 5px 0;
        line-height: 18px;
    }

    .txtbg404 .txtbox .paddingbox {
        padding-top: 15px;
    }

    .txtbg404 .txtbox p a {
        color: #eee;
        text-decoration: none;
    }

    .txtbg404 .txtbox p a:hover {
        color: #FC9D1D;
        text-decoration: underline;
    }
</style>
